package com.huangyi.rabbitmq_spring.listener;

import com.huangyi.rabbitmq_spring.constants.Constants;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.sql.SQLOutput;

@Component
public class FanoutListener {
//    @RabbitListener(queues = Constants.FANOUT_QUEUE1)
//    public void fanoutListener1(String message){
//        System.out.println("队列["+Constants.FANOUT_QUEUE1+"] 接收到消息:" + message);
//    }
//    @RabbitListener(queues = Constants.FANOUT_QUEUE2)
//    public void fanoutListener2(String message){
//        System.out.println( "队列["+Constants.FANOUT_QUEUE2+"] 接收到消息:" + message);
//
//    }
}
